import Vue from "vue";
import dayjs from "dayjs";
export const actorFilter =
    Vue.filter("actorFilter", (data) => data.map((actors) => actors.name).join(" "))
export const priceFilter =
    Vue.filter("priceFilter", (data) => data.toFixed(2))
export const catogoryfilter =
    Vue.filter("catogoryfilter", (data) => data.replace(/\//g," | "))
export const datefilter =
    Vue.filter("datefilter", (millis)=>dayjs(millis).format("YYYY-MM-DD"))
